.root {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.sessions {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding: var(--vd-spacing-xs);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.session {
  display: flex;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;

  &:hover,
  &:global(.active) {
    background-color: rgba($color: #000000, $alpha: 0.1);
    transform: scale(1.02);
  }

  &:global(.drawn) {
    background-color: rgba($color: #000000, $alpha: 0.02);
  }

  .removeSession {
    visibility: hidden;
    color: rgba($color: #000000, $alpha: 0.3);

    &:hover {
      color: rgba($color: #000000, $alpha: 0.7);
    }
  }

  &:hover .removeSession {
    visibility: visible;
  }

  .sessionName {
    flex: 1;
    outline: none;
    word-break: break-all;
    user-select: none;
  }

  .sessionName:not([contenteditable='true']) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  &:global(.active) .sessionName {
    font-weight: 600;
  }
}

.discovery {
  margin-bottom: var(--vd-spacing-xs);
  // border: 2px solid var(--vd-color-secondary-200);
  background-color: var(--vd-color-secondary-100);
}

.footer {
  flex-shrink: 0;
  padding-left: 3px;
  padding-right: 10px;
}
